package org.zhucy.design.singleton;

/**
 * @Auther: zhuchunyang
 * @Date: 2019/6/25 11:27
 * @Description:
 */
public class MySingleton {

    private static MySingleton singleton;

    private MySingleton(){}

    public static synchronized MySingleton getInstance() {
        if(singleton==null){
            singleton = new MySingleton();
        }
        return singleton;
    }
}
